package com.sdau.soa.service;

import com.sdau.soa.vo.News;
import com.sdau.soa.vo.NewsType;

import javax.jws.WebService;
import java.util.Date;
import java.util.List;
//
@WebService
public interface INewsService {

    public List getNews(int newsTypeId);
    public boolean InsertNews(News news);
    public boolean UpdateNews(News news);
    public boolean DelNews(int newsId);
    public List getNewsTypes();
    public boolean InsertNewsType(NewsType news);
    public boolean UpdateNewsType(NewsType news);
    public boolean DelNewsType(int newsTypeId);
    public List searchByInfo(String topic,Date EarlyTime, Date FinalTime);


}
